from django.db.models import Q
from django_filters import rest_framework as filters
from .models import *


class SurveyFilter(filters.FilterSet):
    name = filters.CharFilter(field_name="title", lookup_expr='icontains')

    class Meta:
        model = Survey
        fields = ['name']
